home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / program / togvb25.zip / VC.ZIP / VCDOC.CPP < prev    next >
C/C++ Source or Header  |  1996-01-14  |  2KB  |  81 lines

  1. // vcdoc.cpp : implementation of the CVcDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "vc.h"
  6.  
  7. #include "vcdoc.h"
  8.  
  9. #ifdef _DEBUG
  10. #undef THIS_FILE
  11. static char BASED_CODE THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CVcDoc
  16.  
  17. IMPLEMENT_DYNCREATE(CVcDoc, CDocument)
  18.  
  19. BEGIN_MESSAGE_MAP(CVcDoc, CDocument)
  20.     //{{AFX_MSG_MAP(CVcDoc)
  21.         // NOTE - the ClassWizard will add and remove mapping macros here.
  22.         //    DO NOT EDIT what you see in these blocks of generated code!
  23.     //}}AFX_MSG_MAP
  24. END_MESSAGE_MAP()
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CVcDoc construction/destruction
  28.  
  29. CVcDoc::CVcDoc()
  30. {
  31.     // TODO: add one-time construction code here
  32. }
  33.  
  34. CVcDoc::~CVcDoc()
  35. {
  36. }
  37.  
  38. BOOL CVcDoc::OnNewDocument()
  39. {
  40.     if (!CDocument::OnNewDocument())
  41.         return FALSE;
  42.  
  43.     // TODO: add reinitialization code here
  44.     // (SDI documents will reuse this document)
  45.  
  46.     return TRUE;
  47. }
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CVcDoc serialization
  51.  
  52. void CVcDoc::Serialize(CArchive& ar)
  53. {
  54.     if (ar.IsStoring())
  55.     {
  56.         // TODO: add storing code here
  57.     }
  58.     else
  59.     {
  60.         // TODO: add loading code here
  61.     }
  62. }
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65. // CVcDoc diagnostics
  66.  
  67. #ifdef _DEBUG
  68. void CVcDoc::AssertValid() const
  69. {
  70.     CDocument::AssertValid();
  71. }
  72.  
  73. void CVcDoc::Dump(CDumpContext& dc) const
  74. {
  75.     CDocument::Dump(dc);
  76. }
  77. #endif //_DEBUG
  78.  
  79. /////////////////////////////////////////////////////////////////////////////
  80. // CVcDoc commands
  81.